home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0180-Focus problem-Oct89 < prev    next >
Encoding:
Text File  |  1989-10-25  |  795 b   |  33 lines  |  [TEXT/GEOL]

  1. Item    0349997                         25-Oct-89        18:49
  2.  
  3. From:   D1032                           Softview, Lee Gummerman,PRT
  4.  
  5. To:     MACAPP.TEST                     MacApp SQA Team
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Focus problem
  10.  
  11. To:  MacApp.Test
  12.  
  13. Copies to Macapp.Tech$
  14.  
  15. 1)  It appears that the following code :
  16.  
  17. TMyPrintHandler.Print ( etc. ); etc.
  18.  
  19. begin
  20.    If fView.Focus then;
  21.    print := INHERITED print (etc.);
  22.    If fView.Focus then;
  23. end;
  24.  
  25. will not focus the view the second time.  Any attempts to call quickdraw
  26. routines such as InvalRect, will cause a crash.  I had to explicitly set the
  27. gFocusedView to nil prior to the second focus.   (Focus checks to see if the
  28. focusing view is equal to gFocusedView).
  29.  
  30. Leslie R. Lee
  31. SoftView, Inc.
  32.  
  33.